#!/usr/bin/env python

"""The main entrance of czv program
"""

__version__ = '1.0'
__author__ = 'liwei79@gmail.com'

import sys

import c_parse 
import c_lex
from Compiler import *

def main(args):
    opts        = CompilerOpts(sys.argv[1:])
    compiler    = Compiler(opts)

    compiler.setLexer(c_lex.lexer)
    compiler.setParser(c_parse.parser)
    compiler.initCg()
    compiler.doCg()
    return 0;

